package com.store.bookstore_backend.service;

import com.store.bookstore_backend.dto.AddressAddDTO;
import com.store.bookstore_backend.dto.AddressGetDTO;
import com.store.bookstore_backend.dto.AddressUpdateDTO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AddressService {
    //获取当前用户的全部地址
    public List<AddressGetDTO> getAddress(HttpServletRequest request);

    //创建新地址
    public void createAddress(AddressAddDTO addressAddDTO);

    //删除地址
    public void deleteAddress(int id);

    //更新地址
    public void updateAddress(AddressUpdateDTO addressUpdateDTO);

    //设置默认地址
    public void setDefaultAddress(int addressId, HttpServletRequest request);

    //取消默认地址
    public void cancelDefault(int addressId, HttpServletRequest request);
}
